#CC=gcc
CC=arm-none-linux-gnueabi-gcc
AFLAGS=-Wall -c -g
LDFLAGS= -lpthread -L ./lib -lsqlite3
#LDFLAGS= -lpthread
OBJS=main.o data_global.o pthread_transfer.o pthread_analysis.o \
pthread_client_request.o pthread_buzzer.o pthread_led.o \
pthread_camera.o pthread_sqlite.o sqlite_link_list.o\
pthread_refresh.o pthread_sms.o pthread_uart_cmd.o 

storage_mamage_c :$(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
$(OBJS):%.o:%.c
	$(CC) $(AFLAGS) $< -o $@

.PHONY:clean cp
clean:
	rm *.o storage_mamage_c  #warehouse.db
cp:
	sudo cp storage_mamage_c /source/rootfs/
